package com.yh.correct.service;

import java.util.List;
import java.util.Map;

import com.yh.correct.model.Accomplice;
import com.yh.correct.model.Page;

/**
 * 入矫人员同案犯表服务接口
 * 
 * @author 王卫
 *
 */
public interface IAccompliceService {
	/**
	 * 通过pid查询单个入矫人员同案犯信息
	 */
	List<Accomplice> getAccomplice(int accomplice) throws Exception;

	/**
	 * 增加入矫人员同案犯信息
	 */
	int addAccomplice(Accomplice accomplice) throws Exception;

	/**
	 * 删除入矫人员同案犯信息
	 */
	int delAccomplice(int accomplice) throws Exception;

	/**
	 * 修改入矫人员同案犯信息
	 */
	int editAccomplice(Accomplice accomplice) throws Exception;
	/**
	 * 查询所有
	 */
	List<Accomplice> getAllAccomplice() throws Exception;
	/**
	 * 模糊查询入矫人员同案犯数量
	 */
	Page queryLikeAccomplic(Map<String, Object> cond) throws Exception;
}
